package com.ruoyi.mes.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.mes.domain.ProCraftProcess;

/**
 * 工艺管理对象 pro_craft
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class ProCraft extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工艺id */
    private Long id;

    /** 产品id */
    private Long proId;

    public List<ProCraftProcess> getPrc() {
        return prc;
    }

    public void setPrc(List<ProCraftProcess> prc) {
        this.prc = prc;
    }

    /** 工序数组 */
    private List<ProCraftProcess> prc;

    /** 工艺编号 */
    @Excel(name = "工艺编号")
    private String cftSn;

    /** 工艺名称 */
    @Excel(name = "工艺名称")
    private String cftName;

    /** 工艺状态 */
    @Excel(name = "工艺状态")
    private Integer cftState;

    /** 逻辑删除;0：存在；1：删除 */
    private Long isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCftSn(String cftSn) 
    {
        this.cftSn = cftSn;
    }
    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public String getCftSn() 
    {
        return cftSn;
    }
    public void setCftName(String cftName) 
    {
        this.cftName = cftName;
    }

    public String getCftName() 
    {
        return cftName;
    }
    public void setCftState(Integer cftState) 
    {
        this.cftState = cftState;
    }

    public Integer getCftState() 
    {
        return cftState;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cftSn", getCftSn())
            .append("proId",getProId())
            .append("cftName", getCftName())
            .append("cftState", getCftState())
            .append("remark", getRemark())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .toString();
    }
}
